<html>
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>个人中心</title>
	<link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css">
    <script type="text/javascript" src="__JS__/jquery.min.js"></script>
    <script type="text/javascript" src="__JS__/layer.js"></script>
    <style type="text/css">
    	.sp_l{display: inline-block;width: 30%;}	
    	.sp_m{display: inline-block;width: 30%;}
    	.sp_r{display: inline-block;width: 30%;}
		.left-span{
			height: 18px;
			min-width: 18px;
			padding: 2px 4px 2px 5px;
			color: rgb(255, 255, 255);
			border-radius: 20px;
			position: absolute;
			font-size: 10px;
			top: -7px;
			left: 67px;
			background-color: rgb(239, 64, 86);
		}
    </style>	
</head>
<body>
	<div>
		<!-- 个人信息 -->
		<div style="background-color:rgb(242, 242, 242);padding-top: 10px;padding-bottom:20px;">
			<div style="text-align: center;">
				<img <?php if($row['headimgurl'] != ''):?> src="{$row.headimgurl}"<?php else:?>src="__IMG__/no.jpg" <?php endif;?> style="width: 55px;height: 55px;border-radius: 50%;">
				<!--glyphicon glyphicon-option-horizontal-->
				<span class="glyphicon glyphicon-bell" style="float: right;position: absolute; padding-top: 10px; right: 14px; font-size: 25px;" onclick="right_list();"></span>
			</div>
			<div style="text-align: center;margin-top: 10px;">{$row.nickname}</div>
			<div style="text-align: center;margin-top: 10px;">
				<span class="sp_l" onclick="my_message();">帖子 <b>{$message_num}</b></span>
				<span class="sp_m">|</span>
				<span class="sp_r" onclick="my_like();">喜欢 <b>{$like_num}</b></span>
			</div>
			<if condition="$count gt 0">
			<div style="margin-top: 10px;text-align: center;padding-right:30%;padding-left: 30%;"  onclick="notify_list()">
				<div style="color: white;background-color: rgba(0, 0, 0, 0.4);font-size: 16px;padding: 5px;border-radius: 5px;">
					<span class="glyphicon glyphicon-bell"></span>
					<span style="display:inline-block;margin-left: 5px;margin-right: 5px;">{$count}条新消息</span>
					<span>></span>
				</div>
			</div>
			</if>
		</div>
		<!-- 服务板块 -->
		<div>
			<div style="background-color: rgba(0, 0, 0, 0.027451);padding: 5px 5px;">生活服务</div>
			<div style="text-align: center;margin-bottom: 16px;">
				<div style="width: 33.3%;padding: 15px; float: left;border-right: 0.8px solid rgba(0, 0, 0, 0.0980392);border-bottom: 0.8px solid rgba(0, 0, 0, 0.0980392);">
					<div style='margin-bottom: 10px;'><span class="glyphicon glyphicon-retweet" style="font-size: 30px;"></span></div>
					<div>会带是否</div>
				</div>

				<div style="width: 33.3%;padding: 15px; float: left;border-right: 0.8px solid rgba(0, 0, 0, 0.0980392);border-bottom: 0.8px solid rgba(0, 0, 0, 0.0980392);">
					<div style='margin-bottom: 10px;'><span class="glyphicon glyphicon-retweet" style="font-size: 30px;"></span></div>
					<div>会带是否</div>
				</div>

				<div style="width: 33.3%;padding: 15px; float: left;border-right: 0.8px solid rgba(0, 0, 0, 0.0980392);border-bottom: 0.8px solid rgba(0, 0, 0, 0.0980392);">
					<div style='margin-bottom: 10px;'><span class="glyphicon glyphicon-retweet" style="font-size: 30px;"></span></div>
					<div>会带是否</div>
				</div>
				<div style="clear: both;"></div>
			</div>
		</div>
		<!-- 其他板块 -->
		<div>
			<div style="background-color: rgba(0, 0, 0, 0.027451);padding: 5px 5px;">娱乐服务</div>
			<div style="text-align: center;margin-bottom: 16px;">
				<div style="width: 33.3%;padding: 15px; float: left;border-right: 0.8px solid rgba(0, 0, 0, 0.0980392);border-bottom: 0.8px solid rgba(0, 0, 0, 0.0980392);">
					<div style='margin-bottom: 10px;'><span class="glyphicon glyphicon-retweet" style="font-size: 30px;"></span></div>
					<div>会带是否</div>
				</div>

				<div style="width: 33.3%;padding: 15px; float: left;border-right: 0.8px solid rgba(0, 0, 0, 0.0980392);border-bottom: 0.8px solid rgba(0, 0, 0, 0.0980392);">
					<div style='margin-bottom: 10px;'><span class="glyphicon glyphicon-retweet" style="font-size: 30px;"></span></div>
					<div>会带是否</div>
				</div>

				<div style="width: 33.3%;padding: 15px; float: left;border-right: 0.8px solid rgba(0, 0, 0, 0.0980392);border-bottom: 0.8px solid rgba(0, 0, 0, 0.0980392);">
					<div style='margin-bottom: 10px;'><span class="glyphicon glyphicon-retweet" style="font-size: 30px;"></span></div>
					<div>会带是否</div>
				</div>
				<div style="clear: both;"></div>
			</div>
		</div>
	</div>
	<div style="position: fixed;bottom:0px;text-align: center;width: 100%;background:#f8f8f8;height: 50px;padding-top: 15px;">
		<span class="glyphicon glyphicon-home" style="display:inline-block;width:30%;font-size: 20px;" aria-hidden="true" onclick='home();'></span>
        <span class="glyphicon glyphicon-plus-sign" aria-hidden="true" style='display:inline-block;width:30%;font-size: 20px;' onclick='publish();'></span>
        <span class="glyphicon glyphicon-user" aria-hidden="true" style='display:inline-block;width:30%;font-size: 20px;color: rgb(66, 185, 131);'><if condition="$count gt 0"><span  class="left-span">{$count}</span></if></span>
	</div>
<script type="text/javascript">
	function publish() {
		location.href="{:U('Home/Index/publish')}";
	}
	function home() {
		location.href="{:U('Home/Index/index')}";
	}
    function right_list(obj){
        layer.open({
            content: '<div><button type="button" onclick="tickling()" class="btn btn-default btn-lg" style="width: 90%;"><span style="color: rgb(66, 185, 131);">反&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;馈</span></button></div>' +
			'<div style="padding-top: 10px;"><button type="button" onclick="notify_list()" class="btn btn-default btn-lg" style="width: 90%;"><span style="color: rgb(66, 185, 131);">消息列表</span></button></div>'
            ,skin: 'footer'
        });
    }
    function tickling() {
        location.href="{:U('Home/Index/tickling')}";
    }
    function notify_list() {
        location.href="{:U('Home/Index/notify_list')}";
    }
    function my_like() {
        location.href="{:U('Home/Index/my_like')}";
    }
    function my_message() {
        location.href="{:U('Home/Index/my_message')}";
    }
</script>	
</body>
</html>
